package net.xdclass.service;

import net.xdclass.controller.request.TrafficPageRequest;
import net.xdclass.controller.request.UseTrafficRequest;
import net.xdclass.model.EventMessage;
import net.xdclass.util.JsonData;
import net.xdclass.vo.TrafficVO;

import java.util.Map;

public interface TrafficService {

    void handleTrafficMessage(EventMessage eventMessage);

    Map<String, Object> pageAvailable(TrafficPageRequest request);

    TrafficVO detail(long trafficId);

    boolean deleteExpireTraffic();

    JsonData reduce(UseTrafficRequest useTrafficRequest);

}
